package org.example.mybooksystem.Service;

import org.example.mybooksystem.Modle.UserInfo;
import org.example.mybooksystem.mapper.UserInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created with IntelliJ IDEA.
 * Description:做渐进主义的改良派,不做完没注意的速成派
 * User: XALEXC
 * Date: 2025-02-23
 * Time: 13:16
 */
@Service
public class UserService {

    @Autowired
    private UserInfoMapper userInfoMapper;

    public UserInfo getUserInfoByName(String userName) {
        return userInfoMapper.selectUserByName(userName);
    }
}
